package net.uhuijia.zb.userlivevisitrecord.service;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.user.usermall.persistence.model.UserMall;
import net.uhuijia.vo.zb.UserLiveVisitRecordVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import net.uhuijia.appbase.service.CrudService;
import net.uhuijia.zb.userlivevisitrecord.persistence.dao.UserLiveVisitRecordDao;
import net.uhuijia.zb.userlivevisitrecord.persistence.model.UserLiveVisitRecord;
import net.uhuijia.zb.userlivevisitrecord.persistence.model.UserLiveVisitRecordExample;

import java.util.List;


@Service
@Transactional
public interface UserLiveVisitRecordService
     extends BaseService<UserLiveVisitRecord,UserLiveVisitRecordExample> {

    /**
     * 查询用户多少条访问记录
     * @param userId 用户Id
     * @param length  条数
     * @return
     */
    List<UserLiveVisitRecord> findUserLiveVisitRecordByUserIdAndLength(String userId,Integer length);


    List<UserLiveVisitRecordVo> indexVisitRecord(UserMall userMall, Integer length);
}